body {
    padding: 60px 0;
}

.maxwidth {
    width: 960px;
    margin: 0 auto;
}

//  头部
header {
    position: fixed;
    top: 0;
    height: 40px;
    width: 100%;
    background: linear-gradient(#FFFFFF, #F2F2F2);
    border-bottom: 1px solid #d3d3d3;
    z-index: 1000;
    box-shadow: 0 0 5px #ccc;
    overflow: visible;
    color: #777;
    font-size: 14px;
    font-weight: bold;

    >section {
        display: flex;
        justify-content: space-between;

        >section {
            display: flex;

            >.logobox {
                padding-right: 20px;

                >span {
                    font-size: 18px;
                    font-weight: normal;
                }
            }

            >div {
                height: 38px;
                padding: 0 14px;
                line-height: 38px;

                &:hover {
                    cursor: pointer;
                    color: #333;
                }

                &.hasAfter {
                    position: relative;
                    padding: 0;

                    &::after {
                        content: '';
                        width: 0;
                        height: 0;
                        border-left: 4px solid transparent;
                        border-right: 4px solid transparent;
                        border-bottom: 4px solid transparent;
                        border-top: 4px solid #666;
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translate(-50%, -10%);
                        z-index: 2000;
                    }

                    >p {
                        padding: 0 14px;
                        width: 100%;
                        height: 100%;
                        position: relative;
                        z-index: 2000;
                    }

                    &:hover {
                        >p {
                            background-color: #fff;
                            box-shadow: 0 -5px 5px #aaa;
                        }

                        >ul {
                            display: block;
                        }
                    }

                    >ul {
                        top: 38px;
                        position: absolute;
                        z-index: 1500;
                        background-color: rgba(255, 255, 255, .9);
                        box-shadow: 0 0 5px #aaa;
                    }
                }

                &.userDiv {

                    >ul {
                        width: 120px;
                        right: 0;
                        display: none;

                        >li>a {
                            display: block;
                            width: 100%;
                            height: 28px;
                            line-height: 28px;
                            padding: 0 10px;
                            font-weight: normal;
                            color: #333;

                            &:hover {
                                background-color: #2E8BCC;
                                color: white;
                            }
                        }
                    }
                }

                &.remindDiv {
                    >ul {
                        display: none;
                        width: 202px;
                        min-height: 67px;
                        left: 0;
                        transform: translateX(-50%);
                        padding: 10px;
                        font-size: 12px;
                        font-weight: normal;
                        text-align: left;

                        >.noRemind {
                            line-height: 18px;
                            height: 23px;
                            padding-bottom: 5px;
                        }
                    }
                }
            }
        }
    }
}

.mainBox {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.articalBox {
    width: 690px;

    >h2 {
        font-size: 20px;
        border-bottom: 0 solid #9CF;
        padding: 0 0 17px 0;
        color: #555;
        font-weight: normal;
        border-bottom: 1px dashed #d5d5d5;
    }

    >.noDiaryItem {
        padding: 16px;
        margin: 20px 0;
        background-color: #f6f6f6;
        font-size: 13px;
    }

    >.oneDayDiaries {
        border-top: 1px dashed #d5d5d5;

        >div {
            border-bottom: 1px dashed #d5d5d5;
            padding-top: 20px;

            >.time {
                font-size: 13px;
                margin-bottom: 10px;
                color: #789;
            }

            >img {
                width: 100%;
            }

            >p {
                color: #333;
                line-height: 1.8em;
                padding-top: 3px;
                font-size: 13px;
                white-space: pre-wrap;
            }

            >.bottom {
                font-size: 13px;
                color: #333;
                margin-top: 20px;
                text-align: end;
            }
        }
    }

    >.btnBox {
        margin: 30px auto;
        display: flex;
        justify-content: center;
        >div {
            padding: 5px 10px;
            font-size: 13px;
            margin: 0 2px;
            background: -webkit-linear-gradient(#39E, #2389de);
            border: 1px solid #39E;
            color: #fff;
            &.backBtn {
                margin-right: 20px;
            }
            &:hover{
                cursor: pointer;
            }
        }
    }
}


.sidebar {
    width: 220px;

    >.date {
        display: flex;
        margin-bottom: 5px;
        color: #555;

        >.month {
            font-size: 56px;
            line-height: 48px;
            position: relative;
        }

        >div {
            >.day {
                font-size: 13px;
                text-align: end;
                font-weight: bold;
            }

            >.year {
                font-size: 28px;
            }
        }
    }

    >.selectTime {
        background-color: #F0F1F4;
        border-radius: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 190px;

        >select {
            margin: 5px;
            padding: 3px;
            width: auto;
            background-color: #F0F1F4;
            border: none;
            height: 24px;
            border-radius: 2px;
        }
    }

    >.dayItemBox {
        margin: 5px 0 40px;
        width: 190px;

        >div {
            display: grid;
            grid-template: 24px / repeat(7, 24px);
            gap: 3.5px;
            grid-auto-columns: 24px;
            grid-auto-rows: 24px;
            margin-bottom: 3.5px;

            >div {
                line-height: 24px;
                text-align: center;
                color: #777;
                background-color: #F0F1F4;
                font-size: 11px;

                &.hasDiary {
                    color: #2E8BCC;

                    &:hover {
                        color: #fff;
                        background-color: #9CF;
                        cursor: pointer;
                    }
                }

                &.today {
                    color: #fff;
                    background-color: #06b;
                }
            }
        }
    }

    >.authorBox {
        >h3 {
            color: #333;
            font-size: 28px;
            line-height: 32px;
            font-weight: normal;
            margin-bottom: 10px;
        }

        >img {
            width: 160px;
            margin-bottom: 10px;
            height: 160px;
        }

        >.joinTime {
            font-size: 13px;
            color: #333;
        }

        >.describe {
            padding: 10px 0;
            font-size: 13px;
            color: #333;
        }

        >.attention {
            padding: 7px 12px;
            background: -webkit-linear-gradient(#39E, #2389de);
            color: #fff;
            display: inline-block;
            border-radius: 2px;

            &:hover {
                cursor: pointer;
                background: #2389de;
            }
        }

        >.a {
            background: transparent;
            border: transparent;
            color: #2E8BCC;
            padding: 0;
            cursor: pointer;
            font-size: 13px;
            margin: 18px 0;
        }
    }
}